import { intl } from '@/utils';
import { Button, Result } from 'antd';
import React from 'react';
import { history } from 'umi';

const NoFoundPage: React.FC = () => (
  <Result
    status="404"
    title="404"
    subTitle={intl('noFoundPage.subTitle', '页面未找到.')}
    extra={
      <Button type="primary" onClick={() => history.goBack()}>
        {intl('goBack', '返回')}
      </Button>
    }
  />
);

export default NoFoundPage;
